package com.qyhl.webtv.commonlib.entity.news;

import android.text.TextUtils;

import com.qyhl.webtv.basiclib.utils.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Cookie on 2017/2/7.
 */

public class NormalNewsBean implements Serializable {
    public String ReferName;
    public String Author;
    public String writer;
    public String Content;
    public String Title;
    public String PublishDate;
    public String Summary;
    public List<ActiveAiticle> activeArticle;
    public List<ArticleComment> articleComment;
    public String Logo;
    public String URL;
    public String ID;
    public String HitCount;
    public String CatalogID;
    public String playerpath;
    public int counts;
    public String GoodViewCount;
    private int CollectCount;
    private String ShareCount;
    private String iscollect;

    public int getCollectCount() {
        return CollectCount;
    }

    public void setCollectCount(int collectCount) {
        CollectCount = collectCount;
    }

    public String getShareCount() {
        return ShareCount;
    }

    public void setShareCount(String shareCount) {
        ShareCount = shareCount;
    }

    public String getGoodViewCount() {
        return GoodViewCount;
    }

    public void setGoodViewCount(String goodViewCount) {
        GoodViewCount = goodViewCount;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getLogo() {
        return Logo;
    }

    public void setLogo(String logo) {
        Logo = logo;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getHitCount() {
        return HitCount;
    }

    public void setHitCount(String hitCount) {
        HitCount = hitCount;
    }

    public String getCatalogID() {
        return CatalogID;
    }

    public void setCatalogID(String catalogID) {
        CatalogID = catalogID;
    }

    public String getPlayerpath() {
        return playerpath;
    }

    public void setPlayerpath(String playerpath) {
        this.playerpath = playerpath;
    }

    public int getCounts() {
        return counts;
    }

    public void setCounts(int counts) {
        this.counts = counts;
    }

    public class ActiveAiticle implements Serializable {
        public String RoomId;
        public String Title;
        public String HitCount;
        public String Logo;
        public String GoodViewCount;
        public String PublishDate;
        public String ID;
        public String CatalogID;
        public String Type;
        public int counts;
        public List<Imagess> imagess;
        public String livetype;
        ;
        public String RedirectURL;

        public int commonStyle = 0;
        public int videoStyle = 0;

        public String PluralPicsFlag;//普通新闻样式 0 默认  1 三图  2大图
        public String CommentCount;//评论数

        public int getCommentCount() {
            if (StringUtils.isNotEmpty(CommentCount)) {
                return Integer.parseInt(CommentCount);
            } else {
                return 0;
            }
        }

        public void setCommentCount(String commentCount) {
            CommentCount = commentCount;
        }

        public int getPluralPicsFlag() {
            if (TextUtils.isEmpty(PluralPicsFlag)) {
                return -1;
            }
            return Integer.parseInt(PluralPicsFlag);
        }

        public void setPluralPicsFlag(String pluralPicsFlag) {
            PluralPicsFlag = pluralPicsFlag;
        }

        public int getCommonStyle() {
            return commonStyle;
        }

        public void setCommonStyle(int commonStyle) {
            this.commonStyle = commonStyle;
        }

        public int getVideoStyle() {
            return videoStyle;
        }

        public void setVideoStyle(int videoStyle) {
            this.videoStyle = videoStyle;
        }

        public class Imagess implements Serializable {
            public String imageUrlString;

            public String getImageUrlString() {
                return imageUrlString;
            }

            public void setImageUrlString(String imageUrlString) {
                this.imageUrlString = imageUrlString;
            }
        }

        public String getRedirectURL() {
            return RedirectURL;
        }

        public void setRedirectURL(String redirectURL) {
            RedirectURL = redirectURL;
        }

        public String getLivetype() {
            return livetype;
        }

        public void setLivetype(String livetype) {
            this.livetype = livetype;
        }

        public String getRoomId() {
            return RoomId;
        }

        public void setRoomId(String roomId) {
            RoomId = roomId;
        }

        public List<Imagess> getImagess() {
            return imagess;
        }

        public void setImagess(List<Imagess> imagess) {
            this.imagess = imagess;
        }

        public String getTitle() {
            return Title;
        }

        public void setTitle(String title) {
            Title = title;
        }

        public String getHitCount() {
            return HitCount;
        }

        public void setHitCount(String hitCount) {
            HitCount = hitCount;
        }

        public String getLogo() {
            return Logo;
        }

        public void setLogo(String logo) {
            Logo = logo;
        }

        public String getGoodViewCount() {
            return GoodViewCount;
        }

        public void setGoodViewCount(String goodViewCount) {
            GoodViewCount = goodViewCount;
        }

        public String getPublishDate() {
            return PublishDate;
        }

        public void setPublishDate(String publishDate) {
            PublishDate = publishDate;
        }

        public String getID() {
            return ID;
        }

        public void setID(String ID) {
            this.ID = ID;
        }

        public String getCatalogID() {
            return CatalogID;
        }

        public void setCatalogID(String catalogID) {
            CatalogID = catalogID;
        }

        public String getType() {
            return Type;
        }

        public void setType(String type) {
            Type = type;
        }

        public int getCounts() {
            return counts;
        }

        public void setCounts(int counts) {
            this.counts = counts;
        }

        @Override
        public String toString() {
            return "ActiveAiticle{" +
                    "Title='" + Title + '\'' +
                    ", HitCount='" + HitCount + '\'' +
                    ", Logo='" + Logo + '\'' +
                    ", GoodViewCount='" + GoodViewCount + '\'' +
                    ", PublishDate='" + PublishDate + '\'' +
                    ", ID='" + ID + '\'' +
                    ", CatalogID='" + CatalogID + '\'' +
                    ", Type='" + Type + '\'' +
                    ", counts=" + counts +
                    ", imagess=" + imagess +
                    '}';

        }
    }

    public class ArticleComment implements Serializable {
        public String commentid;
        public String content;
        public String commentuser;
        public String addtime;
        public String logo;

        public String getCommentid() {
            return commentid;
        }

        public void setCommentid(String commentid) {
            this.commentid = commentid;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCommentuser() {
            return commentuser;
        }

        public void setCommentuser(String commentuser) {
            this.commentuser = commentuser;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        @Override
        public String toString() {
            return "ArticleComment{" +
                    "commentid='" + commentid + '\'' +
                    ", content='" + content + '\'' +
                    ", commentuser='" + commentuser + '\'' +
                    ", addtime='" + addtime + '\'' +
                    ", logo='" + logo + '\'' +
                    '}';
        }
    }

    public String getReferName() {
        return ReferName;
    }

    public void setReferName(String referName) {
        ReferName = referName;
    }

    public String getAuthor() {
        return Author;
    }

    public void setAuthor(String author) {
        Author = author;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getPublishDate() {
        return PublishDate;
    }

    public void setPublishDate(String publishDate) {
        PublishDate = publishDate;
    }

    public String getSummary() {
        return Summary;
    }

    public void setSummary(String summary) {
        Summary = summary;
    }

    public List<ActiveAiticle> getActiveArticle() {
        return activeArticle;
    }

    public void setActiveArticle(List<ActiveAiticle> activeArticle) {
        this.activeArticle = activeArticle;
    }

    public List<ArticleComment> getArticleComment() {
        return articleComment;
    }

    public void setArticleComment(List<ArticleComment> articleComment) {
        this.articleComment = articleComment;
    }

    public String getIscollect() {
        return iscollect;
    }

    public void setIscollect(String iscollect) {
        this.iscollect = iscollect;
    }
}
